package com.itqf.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {
    private static final long serialVersionUID =1L;
    private String oid;
    private int userno;
    private int gid;
    private BigDecimal count;
    private int addressid;
    private Address address;
    private Date otime;
    private int ostatus;
    private List<Item> items;

    public Order(String oid, int userno, int gid, BigDecimal count, int addressid, Address address, Date otime, int ostatus) {
        this.oid = oid;
        this.userno = userno;
        this.gid = gid;
        this.count = count;
        this.addressid = addressid;
        this.address = address;
        this.otime = otime;
        this.ostatus = ostatus;
    }

    public Order() {
    }

    public List<Item> getItems() {
        return items;
    }

    public void setItems(List<Item> items) {
        this.items = items;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public int getUserno() {
        return userno;
    }

    public void setUserno(int userno) {
        this.userno = userno;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public BigDecimal getCount() {
        return count;
    }

    public void setCount(BigDecimal count) {
        this.count = count;
    }

    public int getAddressid() {
        return addressid;
    }

    public void setAddressid(int addressid) {
        this.addressid = addressid;
    }

    public Date getOtime() {
        return otime;
    }

    public void setOtime(Date otime) {
        this.otime = otime;
    }

    public int getOstatus() {
        return ostatus;
    }

    public void setOstatus(int ostatus) {
        this.ostatus = ostatus;
    }

    @Override
    public String toString() {
        return "Order{" +
                "oid='" + oid + '\'' +
                ", userno='" + userno + '\'' +
                ", gid=" + gid +
                ", count=" + count +
                ", addressid=" + addressid +
                ", otime=" + otime +
                ", ostatus=" + ostatus +
                '}';
    }
}
